package com.violet.detective.service;

import com.violet.detective.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.violet.detective.util.R;

import java.util.List;

/**
* @author 21145
* @description 针对表【User】的数据库操作Service
* @createDate 2023-09-04 21:36:58
*/
public interface UserService extends IService<User> {
    boolean registerUser(User user);
    boolean changePassword(String account, String name, String newPassword);
    R loginUser(String account, String password);
    boolean updatePermission(Integer id, String permission);
    User getUserById(Integer id);
    List<User> findAllUsers();
}
